// -*- coding: utf-8 -*- 
/**
 * Project: AlgorithmsLearn
 * Creator: yanking
 * Create time: 2022-02-21 18:24
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.leetCode.MyLinkedList;

public class runMyLinkList {
    public static void main(String[] args) {
        MyLinkedList linkList = new MyLinkedList();
//        linkList.addAtHead(1);
//        linkList.addAtTail(3);
//        linkList.addAtIndex(1, 2);
//        System.out.println(linkList.get(1));
//        linkList.deleteAtIndex(1);
//        System.out.println(linkList.get(1));
        linkList.addAtHead(7);
        linkList.addAtHead(2);
        linkList.addAtHead(1);
        linkList.addAtIndex(3, 0);
        linkList.deleteAtIndex(2);
        linkList.addAtHead(6);
        linkList.addAtTail(4);
        System.out.println(linkList.get(4));
    }
}
